package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 推送对象 app_push
 * 
 * @author ruoyi
 * @date 2021-07-30
 */
public class AppPush extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 推送表id */
    private Long id;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 状态 0 未生效 1 已生效 */
    @Excel(name = "状态 0 未生效 1 已生效")
    private Integer state;

    /** 创建人 */
    @Excel(name = "创建人")
    private String createSysUser;

    /** 网址数量 */
    @Excel(name = "网址数量")
    private Integer siteNum;

    /** 生效时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date effectTime;

    /** 推送网址的ids */
    @Excel(name = "推送网址的ids")
    private String siteIds;

    private Date startTime;

    private Date endTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setState(Integer state) 
    {
        this.state = state;
    }

    public Integer getState() 
    {
        return state;
    }
    public void setCreateSysUser(String createSysUser) 
    {
        this.createSysUser = createSysUser;
    }

    public String getCreateSysUser() 
    {
        return createSysUser;
    }
    public void setSiteNum(Integer siteNum) 
    {
        this.siteNum = siteNum;
    }

    public Integer getSiteNum() 
    {
        return siteNum;
    }
    public void setEffectTime(Date effectTime) 
    {
        this.effectTime = effectTime;
    }

    public Date getEffectTime() 
    {
        return effectTime;
    }
    public void setSiteIds(String siteIds) 
    {
        this.siteIds = siteIds;
    }

    public String getSiteIds() 
    {
        return siteIds;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("description", getDescription())
            .append("state", getState())
            .append("createSysUser", getCreateSysUser())
            .append("siteNum", getSiteNum())
            .append("effectTime", getEffectTime())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("siteIds", getSiteIds())
            .toString();
    }
}
